package com.dao;

import com.entity.GoldPoints;
import com.entity.User;
import com.sun.imageio.plugins.common.I18N;
import com.vo.UserBackVo;
import org.apache.ibatis.annotations.Param;
import org.omg.PortableInterceptor.INACTIVE;

import java.util.Date;
import java.util.List;

public interface UserDao {
    User selectUserById(@Param("userId") Integer userId);

    //后台用户登录
    User selectByLoginnameAndPassword(User user);
    List<UserBackVo> findBackUser(UserBackVo userBackVo);
    void modifyBackUser(User user);
    void modifyBackUserS(User user);
    User showBackUser(Integer id);

    User selectDetailGPById(int id);
//罗前台
    List<User> check(String login_name);
    List<User> checkEmail(String email);
    void loginFront(User user);
    User regist(User user);
    void modifyUser(@Param("id")Integer id,@Param("nickname")String nickname,
                    @Param("email")String email,@Param("newPassword")String newPassword);
    void updateLoginDate(GoldPoints goldPoints);
    GoldPoints findLoginDate(@Param("user_id")Integer user_id,@Param("info")String info);
}
